<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id='app'>
    <!-- 
      v-on: 事件的绑定="做出什么反应呢"
     -->
    <button v-on:click="count--">-</button>
    <span>{{count}}</span>
    <!-- <button v-on:click="count++">+</button> -->
    <button @click="count++">+</button>
  </div>
  <script src="../vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        count: 100
      }
    })
  </script>
</body>

</html>